package com.dms.modules.product.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Accessors(chain = true)
@TableName(value = "global_spec_template", autoResultMap = true)
@ApiModel(value = "全局规格模板实体", description = "全局规格模板信息")
public class GlobalSpecTemplate {

    @ApiModelProperty("模板ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("规格名称")
    private String name;

    @ApiModelProperty("规格值列表")
    @TableField(value = "`values`", typeHandler = com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler.class)
    private List<String> values;

    @ApiModelProperty("状态：0-禁用 1-启用")
    private Integer status;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除：0-未删除，1-已删除")
    @TableLogic
    private Boolean deleted;
} 